﻿<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String webContent = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("webContent", webContent);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8">
        <meta name="author" content="order by dede58.com/" />
  <title>发表问题</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="fly,layui,前端社区">
  <meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
  <link rel="stylesheet" href="${webContent }foreground/res/layui/css/layui.css">
  <link rel="stylesheet" href="${webContent }foreground/res/css/global.css">
<script src="${webContent }foreground/res/layui/layui.js"></script>
</head>
<body>

<iframe  src="${webContent }foreground/head.jsp" scrolling="no" width="100%" height="65px" ></iframe>

<div class="main layui-clear">
  <div class="fly-panel" pad20>
    <h2 class="page-title">发表文章</h2>
	${sessionScope.addArticlemsg }
    <div class="layui-form layui-form-pane">
      <form action="${webContent }addArticle " >
        <div class="layui-form-item">
          <label for="L_title" class="layui-form-label">标题</label>
          <div class="layui-input-block">
            <input type="text" id="L_title" name="title" required lay-verify="required" autocomplete="off" class="layui-input">
          </div>
        </div>
       <div class="layui-form-item">
          <label for="L_title" class="layui-form-label">作者</label>
          <div class="layui-input-block">
            <input type="text" id="L_title" name="author" required lay-verify="required" autocomplete="off" class="layui-input"  placeholder="admin">
          </div>
        </div>
        <div class="layui-form-item layui-form-text">
			<div class="layui-form layui-form-pane">
				<div class="layui-form-item layui-form-text">
					<div class="layui-input-block">
						<textarea id="L_content" name="content" required
						lay-verify="required" class="layui-textarea fly-editor" style="height: 150px;"></textarea>
					</div>
				</div>
			</div>
        </div>
        <div class="layui-form-item">
          <label for="L_title" class="layui-form-label">浏览次数</label>
          <div class="layui-input-block">
            <input type="number"  name="readcount" required lay-verify="required" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <button class="layui-btn" lay-filter="*" lay-submit>立即发布</button>
        </div>
      </form>
    </div>
  </div>
</div>

 <script type="text/javascript" charset="utf-8" src="res/js/kindeditor.js"></script>
  <script type="text/javascript">
    KE.show({
        id : 'content',
		resizeMode : 1,
        cssPath : './index.css',
        items : [
        'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
        'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist', 'emoticons', 'image', 'link']
    });
  </script>
<script>

layui.cache.page = '';
layui.cache.user = {
  username: '游客'
  ,uid: -1
  ,avatar: '../res/images/avatar/00.jpg'
  ,experience: 83
  ,sex: '男'
};
layui.config({
  version: "2.0.0"
  ,base: '../res/mods/'
}).extend({
  fly: 'index'
}).use('fly');
</script>
</body>
</html>